﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Order_OrderEdit" Codebehind="OrderEdit.aspx.cs" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../Controls/ORDERNOTEListControl.ascx" TagName="ORDERNOTEListControl"
    TagPrefix="uc2" %>
<%@ Register Src="../Controls/BUTTONDJ.ascx" TagName="BUTTONDJ" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script src="../Include/JS/PopupCalendar.js"></script>
    <script src="../Include/JS/SocanCode.js"></script>
    <script src="../Include/JS/calendar.js"></script>
<script type="text/javascript">
function fpfunc(control)
{
    
    if(control.checked)
    {
        document.getElementById("txtfptt").style.display="";
    }
    else
    {
        document.getElementById("txtfptt").style.display="none";
    }
}
</script>
    <style type="text/css">
    .modalPopup {
	background-color:#ffffdd;
	border-width:3px;
	border-style:solid;
	border-color:#bdbdbd;
	padding:3px;
	width:250px;
}
.modalBackground {
	background-color:Gray;
	filter:alpha(opacity=70);
	opacity:0.7;
}
body {font-size:12px;margin:0;padding:0; color:#000000;}
.btlj {background: url(../Include/Images/bt.gif) no-repeat;color:#000000; width:52px; height:23px;text-align:center; padding-top:5px; font-size:12px;float:left;margin-left:5px;display:inline;}
.btlj a{color:#000000; text-decoration:none;}
.btlj a:hover{color:#FF3300;text-decoration:underline;}
.menu {float:left; width:100px;text-align:center;}
.menu1 {float:left; width:300px;text-align:center;}
.r_bgcolor4 {background-color:#F1F1F1; font-weight:600; text-align:center; padding-top:5px;padding-bottom:5px;border:#CCCCCC 1px solid;}
.fd1 {width:74px;margin:20px auto 0; clear:left;}
.fd2 {width:900px;margin:0 auto 0; clear:left;}
.fd3 {width:900px;margin:20px auto 0; clear:left;}
.fd4 {width:900px;margin:0 auto 20px; clear:left;}
.fd5 {width:900px;margin:-10px auto 20px; clear:left;}
.inputw{width:60px;}
.table {padding-left:20px;}
.tb3 {width: 500px; background-color:#999999;}
.index {width:1049px; margin:0; padding-left:0;border-top:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;}
.indexdh {width:1049px; height:25px; margin:0; padding:0;}
.indexthleft {background-position: center top;width:100px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft5 {background-position: center top;width:60px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft6 {background-position: center top;width:180px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft2 {background-position: center top;width:100px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.indexthright {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthright2 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.indexthleft1 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthleft3 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthleft4 {background-position: center top;width:144px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthright1 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindex {width:1047px; margin:0; padding-left:0;border-top:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;}
.xindexdh {width:1047px; height:25px; margin:0; padding:0;}
.xindexthleft {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthleft4 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright4 {background-position: center top;width:196px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthleft2 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright2 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.xindexthleft1 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthleft3 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthright1 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthright3 {background-position: center top;width:196px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
a.lj {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:link {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:visited {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:hover {color:#ff3300;}
a.lj:active {color:#ff3300;}
a.lj1 {background: url(../Include/Images/bt.gif) no-repeat; width:52px; height:23px;text-align:center; padding-top:5px; font-size:12px;float:left;margin-left:5px;display:inline;}
a.lj1:link {font-size:12px; color:#000000; text-decoration:none;}
a.lj1:visited {font-size:12px; color:#000000; text-decoration:none;}
a.lj1:hover {color:#000000;}
a.lj1:active {color:#000000;}
h2 {width:1250px;padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}

.zt1 {padding-left:10px; font-weight:600; color:#000000;}
.zt2 {padding-left:10px;}
.zt3 {text-align:center; font-weight:600; color:#000000;}
.zt4 {text-align:center; color:#000000;}
.zt5 {text-align:left; font-weight:600;}
.zt6 {font-size:14px; font-weight:600;}
.zt7 {text-align:right; color:#000000;}
.zt8 {text-align:right; color:#000000;}
.jiacu {float:left; font-weight:bold;padding-top:5px;}
.menu_bg { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;width:1250px;clear:left;}
.menu_bg1 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;width:100%;clear:left;}
.menu_bg2 {width:1250px;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;padding-bottom:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.menu_bg3 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.ld {margin-left:20px;}
.td_left {border-left:#999999 1px solid; border-top:#999999 1px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid; font-weight:bold; background:#e7e7e7; text-align:center; line-height:22px;}
.td_right {border-left:#999999 1px solid; border-top:#999999 1px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid; font-weight:bold; background:#e7e7e7; text-align:center; line-height:22px;}
.td_left1 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:center; line-height:22px;}
.td_right1 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:center; line-height:22px;}
.td_left2 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:right; line-height:22px;}
.td_right2 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:right; line-height:22px;}
.td_left3 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:right; line-height:22px;}
.td_right3 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:right; line-height:22px;}
</style>
</head>
<body>
    <form id="form1" runat="server">  <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
             <div align="Justify">
          
       
                 
               
            <h2>订单列表详细信息</h2>
            <div class="menu_bg">
                <uc1:BUTTONDJ ID="BUTTONDJ1" runat="server" />
                <asp:Button ID="btnClear" runat="server" Text="结算" CssClass="input_button" OnClick="btnClear_Click"/>
                <asp:Button ID="btnUpdatePayDetail" runat="server" CssClass="input_button3" Text="修改支付明细" OnClick="btnUpdatePayDetail_Click" /></div>
            <br />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
            <div class="juli">
                <table style="background-color:#999999;" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z2">
                        <td class="zt5" width="120" style="height: 16px">
                            订单编号：</td>
                        <td width="200" style="height: 16px">
                            <asp:Label ID="lblorderid" runat="server" Text=""></asp:Label></td>
                        <td class="zt5" width="120" style="height: 16px">
                            下单日期：</td>
                        <td width="200" style="height: 16px">
                            <asp:Label ID="lblorderrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 16px">
                            关联订单：</td>
                        <td style="height: 16px">
                            <asp:HyperLink ID="HyperLink1" runat="server" Text=""></asp:HyperLink>
                            </td>   
                        <td class="zt5">
                            锁定：</td>
                        <td>
                            <asp:CheckBox ID="ckbsd" runat="server" Enabled="false" /></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 16px">
                           会员代码：</td>
                        <td style="height: 16px">
                           <asp:HyperLink ID="lblgmr" runat="server" Text="" ForeColor="#ff9900"></asp:HyperLink></td>
                        <td class="zt5" style="height: 16px">
                            锁定日期：</td>
                        <td style="height: 16px">
                            <asp:Label ID="lblclockrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                           会员名称：</td>
                        <td>
                           <asp:Label ID="Label2" runat="server"  /></td>
                        <td class="zt5">
                            作废：</td>
                        <td>
                            <asp:CheckBox ID="ckbzf" runat="server" Enabled="false" /></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 22px">
                            订单来源：</td>
                        <td style="height: 22px">
                            <asp:DropDownList ID="ddlddly" Width="100" runat="server">
                            </asp:DropDownList></td>
                        <td class="zt5" style="height: 22px">
                            作废日期：</td>
                        <td style="height: 22px">
                            <asp:Label ID="lbldeleterq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            货到付款：</td>
                        <td>
                            <asp:DropDownList ID="ddljylx" Width="100" runat="server" Enabled="false">
                                <asp:ListItem Text="非货到付款" Value="0"></asp:ListItem>
                                <asp:ListItem Text="货到付款" Value="1"></asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="zt5">
                            客审：</td>
                        <td>
                            <asp:CheckBox ID="ckbks" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            配送方式：</td>
                        <td>
                            <asp:DropDownList ID="ddlwlfs" Width="100" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlwlfs_SelectedIndexChanged">
                            </asp:DropDownList></td>
                        <td class="zt5">
                            客审日期：</td>
                        <td>
                            <asp:Label ID="lblksrq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            费用性质：</td>
                        <td>
                            <asp:DropDownList ID="ddlfyxz" Width="100" runat="server">
                                <asp:ListItem Text="卖方承担" Value="001"></asp:ListItem>
                                <asp:ListItem Text="买方承担" Selected="true" Value="002"></asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="zt5">
                            财审：</td>
                        <td>
                            <asp:CheckBox ID="ckbcs" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            商品数量：</td>
                        <td>
                            <asp:Label ID="lblsl" runat="server" Text=""></asp:Label></td>

                        <td class="zt5">
                            财审日期：</td>
                        <td>
                            <asp:Label ID="lblcsrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            商品金额：</td>
                        <td>
                            <asp:Label ID="lblspje" runat="server" Text=""></asp:Label></td>
                        <td class="zt5">
                            发货：</td>
                        <td>
                            <asp:CheckBox ID="ckbfh" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            让利金额：</td>
                        <td>
                            <asp:TextBox ID="txtrlje" CssClass="zt7" Width="94" runat="server"></asp:TextBox></td>
                        <td class="zt5">
                            发货日期：</td>
                        <td>
                            <asp:Label ID="lblfhrq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            物流费用：</td>
                        <td>
                            <asp:TextBox ID="txtwlfy" CssClass="zt7" Width="94" runat="server"></asp:TextBox></td>
                        <td class="zt5">
                            结算：</td>
                        <td>
                            <asp:CheckBox ID="ckbjs" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            实际金额：</td>
                        <td>
                            <asp:Label ID="lblorderje" runat="server" Text=""></asp:Label></td>
                        <td class="zt5" style="height: 16px">
                            已结算金额：</td>
                        <td style="height: 16px">
                            <asp:Label ID="lblJSJE" runat="server"  /></td>

                    </tr>
                   <tr class="z2">
                        <td class="zt5">
                            索要发票：</td>
                        <td>
                            <asp:CheckBox ID="ckbfp" runat="server" Checked="false" AutoPostBack="True" OnCheckedChanged="ckbfp_CheckedChanged" /><input id="txtfptt" runat="server" type="text"/>
                        </td>
                        <td class="zt5">
                            重量：</td>
                        <td>
                            <asp:Label ID="lblWeight" runat="server" Text=""></asp:Label><span style="display:none;"><asp:Label ID="lblzk" runat="server" Text=""></asp:Label></span></td>

                    </tr>                       
                   
                    <tr class="z2">
                        <td rowspan="2" class="zt5">
                            担保交易：</td>
                        <td rowspan="2">
                            <asp:CheckBox ID="chkAssureDeal" runat="server" Enabled="False" />
                            </td>                    
                        <td class="zt5">
                            备注：
                        </td>
                        <td>
                            <asp:TextBox ID="txtbz" TextMode="MultiLine" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    
                </table>
            </div>

            <script src="../Include/JS/Lib/jquery-1.1.4.js"></script>

            <script type="text/javascript">
            
            
    function saveproduct()
   {
        document.getElementById("BUTTONDJ1_btnSave").disabled="disabled";
        var dls=document.getElementById("DataList1");
        var ys=dls.rows[0].cells[0];
        alert(ys.innerHTML);return false;
        var s=document.getElementById("tabProduct");
        var spstr="";
        if(s.childNodes.length>0)
        {
            for(var i=0;i<s.childNodes.length;i++)
            {
                var colorstr="";
                var sizestr="";
                var sl="1";
                var zk="1";
                var color=document.getElementById("color"+s.childNodes[i].childNodes[1].title);
                var size=document.getElementById("size"+s.childNodes[i].childNodes[1].title);
                sl=document.getElementById("sl"+s.childNodes[i].childNodes[1].title).value;
                zk=document.getElementById("zk"+s.childNodes[i].childNodes[1].title).value;
                colorstr=retselect(color);
                sizestr=retselect(size);     
                spstr+=s.childNodes[i].childNodes[1].title+","+colorstr+","+sizestr+","+sl+","+zk+"#";
            }
//            spstr=spstr.substring(0,spstr.length-1);
        }
        var zfobj=document.getElementById("tabZF");     
        var zfstr="";
        if(zfobj.childNodes.length>0)
        {
            for(var z=0;z<zfobj.childNodes.length;z++)
            {
                var zhanghao=zfobj.childNodes[z].childNodes[1].childNodes[0].value;
                var zfdm=retselect(zfobj.childNodes[z].childNodes[2].childNodes[0]);
                var zfje=zfobj.childNodes[z].childNodes[3].childNodes[0].value;
                var zfrq=zfobj.childNodes[z].childNodes[4].childNodes[0].value;
                var jyh=zfobj.childNodes[z].childNodes[5].childNodes[0].value;
                var jyrq=zfobj.childNodes[z].childNodes[6].childNodes[0].value;
                var bz=zfobj.childNodes[z].childNodes[7].childNodes[0].value;
                zfstr+=zhanghao+","+zfdm+","+zfje+","+zfrq+","+jyh+","+jyrq+","+bz+"#";
            }        
//            zfstr=zfstr.substring(0,zfstr.length-1);
        }
        arg = spstr+"|"+zfstr;   alert("s");
        <%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData", "")%>; 
   }

    function ReceiveServerData(result)   
 {  
//     switch (result)
//     {
//        case "":
//            //hide();
//            alert("保存失败");document.getElementById("BUTTONDJ1_btnSave").disabled="";return false;
//            break;
//        default:
//            window.location.href="OrderEdit.aspx?code="+result;
//            //window.document.write(result);
//     }
     
 } 
     function GetZFList()
    {
        var p=document.getElementById("ddljylx");
        var jylx=p.options[p.options.selectedIndex].value;
         document.getElementById("div_loadding").innerHTML = "<span >Loading  <img src='../Include/Images/loadimg.gif'></span>";
          $j.post("../Handler/OrderProductHandler.ashx?t=1&jylx="+jylx,null, function(data){       
        var s=document.getElementById("tabZF");
        s.innerHTML+=data;
           document.getElementById("div_loadding").innerHTML ="";
        });
    }    
   var  $j = jQuery.noConflict();
    function GetList(p)
    {
         document.getElementById("div_loadding").innerHTML = "<span >Loading  <img src='../Include/Images/loadimg.gif'></span>";
         P_list=document.getElementById("P_List");    

          $j.post("../Handler/OrderProductHandler.ashx?t=1&spdm="+p,null, function(data){       
           addRow(data);
           Suan('');
           document.getElementById("div_loadding").innerHTML ="";
        });
    }
       function setValue(p)
       {
            //alert(p);
            //GetList(p);
            window.location.reload();
       }    
   function Suan(p)
   {
        var zje=0;
        var s=document.getElementById("tabProduct");
        if(p!="")
        {
            for(var i=1;i<s.childNodes.length;i++)
            {
                document.getElementById("zk"+s.childNodes[i].childNodes[1].title).value=document.getElementById("TextBox1").value;
            }           
        }
        for(var a=0;a<s.childNodes.length;a++)
        {
            var zk=document.getElementById("zk"+s.childNodes[a].childNodes[1].title).value;
            var sl=document.getElementById("sl"+s.childNodes[a].childNodes[1].title).value;            
            var price=document.getElementById("p"+s.childNodes[a].childNodes[1].title).innerHTML;
            var sjdj=price*zk;
            var bzjj=price*sl;
            var sjjj=sjdj*sl;
            document.getElementById("aprice"+s.childNodes[a].childNodes[1].title).innerHTML=sjdj.toFixed(2);
            document.getElementById("samt"+s.childNodes[a].childNodes[1].title).innerHTML=bzjj.toFixed(2);
            document.getElementById("aamt"+s.childNodes[a].childNodes[1].title).innerHTML=sjjj.toFixed(2);
            zje+=sjjj;
        }   
        //document.getElementById("div_zjj").innerHTML=zje.toFixed(2);
   }
   function addRow(tr)
   {
        var s=document.getElementById("tabProduct");
        s.style.display="";
        s.innerHTML+=tr;
   }
   function removeRow(src)
   {
    src.parentNode.parentNode.parentNode.removeChild(src.parentNode.parentNode);
   }       

   function retselect(s)
   {
        var value="";
        for(var a=0;a<s.options.length;a++)
        {
            if(s.options[a].selected)
            {
                value=s.options[a].value;
            }
        }    
        return value;    
   }
   function jsf(btn)
   {        
        return true;
   }
   function chknew()
   {
        var tbsp=document.getElementById("tab_sp");
        if(tbsp.rows.length>0)
        {
            if(window.confirm("新添加的信息尚未保存，您要放弃已添加信息么？"))
            {
               SearchProduct_S('../');
            }
        }
        else
        {
            SearchProduct_S('../');
        }
   }
            </script>

            <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>

            <div id="div_addproduct" runat="server" visible="false" class="fd3">
                <!--此div的id及runat属性不能修改-->

            </div>
            <div class="r_right" id="div_loadding">
            </div>
            <div class="menu_bg2"><span class="jiacu">商品明细</span><div id="div_spnewadd" runat="server" class="btlj">
            <a href="javascript:void(0);" onclick="chknew();">新增</a></div>              
                <%--                <div class="btlj">
                    <a href="javascript:void(0);" onclick="saveproduct();">保存</a></div>--%>
            </div> 
                    <div class="juli">
                    <asp:DataList ID="DataList1" runat="server" OnEditCommand="DataList1_EditCommand"
                        OnItemDataBound="DataList1_ItemDataBound" OnItemCommand="DataList1_ItemCommand"
                        Width="100%">
                        <HeaderTemplate>
                            <tr>
                                <td class="td_left" width=6%>
                                    删除</td>
                                <td class="td_left" width=30%>
                                    代码名称</td>
                                <td class="td_left" width=6%>
                                    颜色</td>
                                
                                <td class="td_left" width=6%>
                                    尺码</td>
                                <td class="td_left" width=6%>
                                    数量</td>
                                <td class="td_left" width=8%>
                                    标准单价</td>
                                <td class="td_left" width=6%>
                                    折扣</td>
                                <td class="td_left" width=8%>
                                    实际单价</td>
                                <td class="td_left" width=8%>
                                    标准金额</td>
                                <td class="td_left" width=8%>
                                    实际金额</td>
                                <td class="td_right" width=8%>
                                    重量</td>                                    

                            </tr>                           
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td class="td_left1" width=6%>
                                    <asp:Button ID="btnDelete" runat="server" CssClass="input_button" CommandName="delete" CommandArgument='<%# Eval("od_id")+"|"+Eval("od_detailid") %>'
                                        Text="删除" />

                                </td>                            
                                <td class="td_left1" width=30%>                                    
                                    <asp:HiddenField ID="hdcolor" runat="server" Value='<%# Eval("od_colorcode") %>' />
                                    <asp:HiddenField ID="hdsize" runat="server" Value='<%# Eval("od_sizecode") %>' />
                                    <span style="display:none;"><asp:Label ID="lblspdm" runat="server" Text='<%# Eval("od_cmdcode").ToString().Trim() %>'></asp:Label></span>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("od_cmdcode").ToString().Trim()+"  "+Eval("spmc").ToString().Trim() %>'></asp:Label></td>
                                <td class="td_left1" width=6%>
                                    <asp:DropDownList ID="color" runat="server" DataTextField="ggmc" DataValueField="ggdm">
                                    </asp:DropDownList>
                                </td>
                                <td class="td_left1" width=6%>
                                    <asp:DropDownList ID="size" runat="server" DataTextField="ggmc" DataValueField="ggdm">
                                    </asp:DropDownList>
                                </td>
                                <td class="td_left1" width=6%>
                                    <asp:TextBox ID="txtSL" runat="server" CssClass="zt8" Text='<%# Eval("od_qty") %>' Width="50"></asp:TextBox></td>
                                <td class="td_left2" width=8%>
                                    <%# Eval("od_sprice") %>
                                </td>
                                <td class="td_left1" width=6%>
                                    <asp:TextBox ID="txtZK" runat="server" Text='<%# Eval("od_disc") %>' Width="50"></asp:TextBox></td>
                                <td class="td_left2" width=8%>
                                    <%# Eval("od_aprice") %>
                                </td>
                                <td class="td_left2" width=8%>
                                    <%# Eval("od_samt") %>
                                </td>
                                <td class="td_left2" width=8%>
                                    <%# Eval("od_aamt") %>
                                </td>
                                <td class="td_right2" width=8%>
                                    <asp:Label ID="lblWeight" runat="server" Text='<%# String.Format("{0:0}", Eval("OD_WEIGHT")) %>'></asp:Label>
                                </td>
                            </tr>                            
                        </ItemTemplate>
                    </asp:DataList>
                    <table id="tab_sp" runat="server" width="100%" cellspacing="0" border="0">
                    
                    </table></div>

            <br />
            <div id="tabProduct" class="fd5" style="display: none;">
            </div>
            <div id="div_addproductzf" runat="server" visible="false" class="fd3">
                <%--<div class="btlj">
                    <a href="javascript:void(0);" onclick="GetZFList();">新增</a></div>--%>
            </div>
          
            <div class="menu_bg2"><span class="jiacu">收货信息</span></div>
            <table>
                <tr>
                    <td>
                        收货人：
                    </td>
                    <td style="width: 450px">
                        <asp:TextBox ID="txtshr" runat="server" Width="268px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        收货人电话：
                    </td>
                    <td style="width: 450px">
                        <asp:TextBox ID="txtshrdh" runat="server" Width="265px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        收货人手机：
                    </td>
                    <td style="width: 450px">
                        <asp:TextBox ID="txtshrsj" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        收货人邮编：
                    </td>
                    <td style="width: 450px">
                        <asp:TextBox ID="txtshryb" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        收货人地址：

                    </td>
                    <td style="width: 450px">
                        <asp:TextBox ID="txtshrdz" Width="416px" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
            
            
            <div class="menu_bg2"><span class="jiacu">支付明细</span><div  id="div_zfnewadd" runat="server" class="btlj"><asp:LinkButton ID="btnNewZF" runat="server" Width="50px" Height="18px"  Text="新增" OnClick="btnNewZF_Click" /></div>
            </div> 
            <div class="juli"><asp:DataList ID="DataList2" runat="server" OnEditCommand="DataList2_EditCommand"
                OnItemDataBound="DataList2_ItemDataBound" OnItemCommand="DataList2_ItemCommand"
                Width="1250">
                <HeaderTemplate>
                    <tr>
                        <td class="td_left" width=60>
                            删除
                        </td>
                        <td class="td_left" width=130>
                            帐号</td>
                        <td class="td_left" width=60>
                            交易类型</td>                            
                        <td class="td_left" width=150>
                            支付方式</td>
                        <td class="td_left" width=60>
                            支付金额</td>

                        <td class="td_left" width=130>
                            交易号</td>
                        <td class="td_left" width=130>
                            交易日期</td>

                        <td class="td_left">
                            备注</td>
                        <td class="td_left" width=60>
                            到帐金额</td>
                        <td class="td_left" width=130>
                            到帐日期</td>
                        <td class="td_right" width=80>
                            已退货金额</td>                            
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="td_left1" width=60>
                            <%--<asp:Button ID="btnUpdate" runat="server" CommandName="update" CommandArgument='<%# Eval("pd_detailid") %>'
                                    Text="更新" />--%>
                            <asp:Button ID="btnDelete" runat="server" CssClass="input_button" CommandName="delete" CommandArgument='<%# Eval("pd_detailid") %>'
                                Text="删除" />
                            <%--<asp:Button ID="btnChanl" runat="server" CommandName="chanl" CommandArgument='<%# Eval("pd_detailid") %>'
                                    Text="取消" />--%>
                            <asp:HiddenField ID="hid_zfdm" runat="server" Value='<%# Eval("pd_paytype") %>' />
                        </td>
                        <td style="display: none;" class="zt4">
                            <asp:Label ID="lbldetailid" runat="server" Text='<%# Eval("pd_detailid") %>'></asp:Label></td>
                        <td class="td_left1" width=130>
                            <asp:TextBox ID="txtzhanghao" runat="server" Text='<%# Eval("pd_account")%>' Width="124"></asp:TextBox></td>
                        <td class="td_left1" width=60>
                            <asp:DropDownList ID="DropDownList1" runat="server" Width="55"  AutoPostBack="true" OnSelectedIndexChanged="DataList2_DDLCHANGE_Click">
                            <asp:ListItem Text="即时到帐" Value="001"></asp:ListItem>
                            <asp:ListItem Text="担保交易" Value="002"></asp:ListItem>
                            <asp:ListItem Text="结余款" Value="003"></asp:ListItem>
                            </asp:DropDownList><asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("PD_DTCODE") %>' />                        
                            </td>                            
                        <td class="td_left1" width=150>
                            <asp:DropDownList ID="ddlzflx" runat="server" Width="140" DataTextField="pt_name" DataValueField="pt_code">
                            </asp:DropDownList>
                        </td>
                        <td class="td_left1" width=60>
                            <asp:TextBox ID="txtzfje" runat="server" CssClass="zt8" Text='<%# Eval("pd_payamt") %>' Width="52"></asp:TextBox></td>

                        <td class="td_left1" width=130>
                            <asp:TextBox ID="txtjyh" runat="server" Text='<%# Eval("pd_dealid") %>' Width="124"></asp:TextBox></td>
                        <td class="td_left1" width=130>
                            <asp:TextBox ID="txtjyrq" runat="server" Text='<%# Eval("pd_dealdate") %>' onfocus="setday(this);" 
                                Width="120"></asp:TextBox></td>
                          
                        <td class="td_left1">
                            <asp:TextBox ID="txtbz" runat="server" Text='<%# Eval("pd_note") %>' Width="200"></asp:TextBox></td>
                        <td class="td_left3" width=60>
                            <%# String.Format("{0:0.00}", Eval("PD_GETAMT"))%></td>
                        <td class="td_left1" width=130>
                            <%# Eval("PD_GETDATE")%></td>
                        <td class="td_right3" width=80>
                            <%# String.Format("{0:0.00}", Eval("PD_HRAMT"))%></td>                                  
                    </tr>
                </ItemTemplate>
            </asp:DataList>
                    <table id="tab_zf" runat="server" cellspacing="0" border="0" style="width:1250px;">
                    
                    </table></div>            
            <span style="display: none;">
                <asp:Label ID="lblzfzje" runat="server" Text=""></asp:Label></span><span style="display: none;">
                <asp:Label ID="lblnewzfbj" runat="server" Text=""></asp:Label></span>
            <br />
            <div id="tabZF" class="fd5">
            </div>
         </ContentTemplate>
            </asp:UpdatePanel>
                                <div class="menu_bg2"><span class="jiacu">意见详细信息</span></div>
                    <div class="juli"><uc2:ORDERNOTEListControl ID="ORDERNOTEListControl1" runat="server" /></div>
                 <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" style="display:none"/>
        <cc1:ModalPopupExtender runat="server" ID="programmaticModalPopup"
            PopupControlID="programmaticPopup"
            BackgroundCssClass="modalBackground"
            TargetControlID="hiddenTargetControlForModalPopup">
        </cc1:ModalPopupExtender>
        <asp:Panel runat="server" CssClass="modalPopup" ID="programmaticPopup" style="display:none;width:350px;padding:10px">
            <asp:Panel runat="Server" ID="programmaticPopupDragHandle" Style="cursor: move;background-color:#fef3bb;border:solid 1px #cf994b;color:Black;text-align:center; line-height:22px; font-weight:600;">
                可用库存不足，是否审批订单?
            </asp:Panel>
            <div style="text-align:center; margin-top:10px;"><asp:Button ID="btnSubmit" runat="server" CssClass="input_button" Text="确定" OnClick="btnSubmit_Click" />  
            <asp:Button ID="btnCancel" runat="server" CssClass="input_button" Text="取消" OnClick="btnCancel_Click" /></div>  
        </asp:Panel>
                 <br /><br />
                    </div>
    </form>
</body>
</html>
